home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000009_karney@pppl.gov_Thu Dec 1 11:08:52 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  2KB

  1. Received: from pppl.gov by cs.umb.edu with SMTP id AA16702
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 1 Dec 1994 16:08:57 -0500
  3. Received: from draco.pppl.gov (draco.pppl.gov [198.35.6.44]) by pppl.gov (8.6.8.1/8.6.5) with ESMTP id QAA18493; Thu, 1 Dec 1994 16:08:53 -0500
  4. From: Charles Karney <karney@pppl.gov>
  5. Received: (karney@localhost) by draco.pppl.gov (8.6.9/8.6.9) id QAA03115; Thu, 1 Dec 1994 16:08:52 -0500
  6. Date: Thu, 1 Dec 1994 16:08:52 -0500
  7. Message-Id: <199412012108.QAA03115@draco.pppl.gov>
  8. To: tex-k@cs.umb.edu
  9. Subject: Mode setting in config.PRINTER does not overred setting in config.ps
  10. Reply-To: karney@princeton.edu
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13.  
  14. With dvipsk 5.58c on a Sun Sparc Solaric 2.3 system compiled with gcc
  15. 2.6.2, and a vanilla configuration.
  16.  
  17. /usr/local/lib/texmf/dvips/config.ps contains:
  18.  
  19.     D 300
  20.     M cx
  21.  
  22. /usr/local/lib/texmf/dvips/config.sparc1 contains:
  23.  
  24.     D 400
  25.     M sparcptr
  26.  
  27. Run dvips with
  28.  
  29.     dvips -Psparc1 file.dvi
  30.  
  31. and MakeTeKPK is called with
  32.  
  33.     kpathsea: Running MakeTeXPK cmr10 400 400 1+0/400 cx
  34.  
  35. Apparently the resolution setting in config.sparc1 has overridden the
  36. setting in config.ps while the mode setting has not.  This is contrary to
  37. the documentation: "Thus, the printer configuration file can override
  38. anything in the global or user configuration file."
  39.  
  40. Shouldn't the precendence for the mode setting thus be: command-line,
  41. config.PRINTER, .dvipsrc, config.ps, compile-time default
  42.  
  43. The fault lies somewhere in the logic in getdefaults in resident.c
  44.     case 'M' :
  45.          /* If we had the compilation default, replace it. But
  46.         if they specified one with -mode, keep it.  */
  47.          if (!mfmode)
  48.            mfmode = configstring(was_inline+1, 0) ;
  49.          break ;
  50.  
  51. which prevents the later "M" line from overriding the earlier one.
  52.  
  53. -- 
  54.    Charles Karney
  55.    Plasma Physics Laboratory      E-mail:  Karney@Princeton.EDU
  56.    Princeton University          Phone:   +1 609 243 2607
  57.    Princeton, NJ 08543-0451      FAX:       +1 609 243 2662